home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1708 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: ts168.eiu.bgu.edu!MJ-PHeee
  2. From: MJ-PHeee@bgu.edu (Martin Phee)
  3. Newsgroups: comp.lang.c
  4. Subject: MS overlay questions
  5. Date: Tue, 16 Jan 1996 08:17:06 +1000
  6. Organization: Educational Computing Network
  7. Message-ID: <MJ-PHeee.26.00076255@bgu.edu>
  8. NNTP-Posting-Host: ts168.eiu.bgu.edu
  9. Summary: Converting to MS from Borland
  10. Keywords: Microsoft
  11. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B]
  12.  
  13. 1/14/96
  14.  
  15. One of the following situations occurred:
  16.  
  17. If target is root, the segment was defined as PRIVATE in a SEGMENTS definition in the .DEF file. 
  18. A PRIVATE segment cannot be placed in an overlay. LINK placed segment into the 
  19. root.
  20. If target is OVERLAY_THUNKS, LINK resolved a far reference to the overlaid 
  21. segment by using the thunk table. LINK cannot determine whether the reference 
  22. is to code or data. A code reference is resolved correctly. A data reference 
  23. is not resolved correctly.
  24. //////////////////////////////////////////////////////////////////////////////
  25.  
  26. I'm almost positive it is data......  Borland doesn't mind this I guess.  The 
  27. program has a lot of Global data ( which I'm reducing....) what should I look 
  28. for...??  Should I be worried???
  29.  
  30. Also, MS suggestes overlays around 4k, while getting them nearer to 64k in 
  31. Borland works best....  ??  What's do you think.....  What are the best 
  32. options in MS to compile with???
  33.  
  34. Marty
  35.  
  36. 1/16/96
  37.  
  38. Also, do I need to declare all functions as far????
  39. How about the parameters??
  40.  
  41. The above program was written using Borland Turbo C++ and runs fine.
  42.  
  43. Thanks,
  44.  
  45. Marty
  46.  
  47.  
  48.  
  49.